package com.aspirecn.core.object;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;

public class Province {

	public int getNid() {
		return nid;
	}

	public void setNid(int nid) {
		this.nid = nid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private int nid;
	public int getTianqinid() {
		return tianqinid;
	}

	public void setTianqinid(int tianqinid) {
		this.tianqinid = tianqinid;
	}

	private int tianqinid;
	private String name;
	
	public void addCity( City city )
	{
		if( cityList == null )
		{
			cityList = new ArrayList<City>();
		}
		
		cityList.add(city);
	}
	
	private List<City> cityList;

	public List<City> getCityList() {
		return cityList;
	}

	public void setCityList(List<City> cityList) {
		this.cityList = cityList;
	}

	public String toString() {
		return ReflectionToStringBuilder.toString(this);
	}

}
